/*
 * hkh-project
 * leafteamwork.blogspot.com
 * Tool: Netbeans 6.7.1 - SQL Server 2005
 */
package vn.com.hkh.dto;

import java.io.Serializable;

/**
 *
 * @author leaf
 */
public class ContactDTO implements Serializable {

    private static long serialVersionUDI = 1L;
    private String id;
    private String fullname;
    private String email;
    private String address;
    private String phone;
    private String title;
    private String content;
    private String when;

    public ContactDTO() {
    }

    public ContactDTO(String id, String fullname, String email, String address, String phone, String title, String content, String when) {
        this.id = id;
        this.fullname = fullname;
        this.email = email;
        this.address = address;
        this.phone = phone;
        this.title = title;
        this.content = content;
        this.when = when;
    }

    /**
     * @return the id
     */
    public String getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * @return the fullname
     */
    public String getFullname() {
        return fullname;
    }

    /**
     * @param fullname the fullname to set
     */
    public void setFullname(String fullname) {
        this.fullname = fullname;
    }

    /**
     * @return the email
     */
    public String getEmail() {
        return email;
    }

    /**
     * @param email the email to set
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * @return the address
     */
    public String getAddress() {
        return address;
    }

    /**
     * @param address the address to set
     */
    public void setAddress(String address) {
        this.address = address;
    }

    /**
     * @return the phone
     */
    public String getPhone() {
        return phone;
    }

    /**
     * @param phone the phone to set
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }

    /**
     * @return the title
     */
    public String getTitle() {
        return title;
    }

    /**
     * @param title the title to set
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * @return the content
     */
    public String getContent() {
        return content;
    }

    /**
     * @param content the content to set
     */
    public void setContent(String content) {
        this.content = content;
    }

    /**
     * @return the when
     */
    public String getWhen() {
        return when;
    }

    /**
     * @param when the when to set
     */
    public void setWhen(String when) {
        this.when = when;
    }

    @Override
    public int hashCode() {
        int _hash = 0;
        _hash += (getId() != null ? getId().hashCode() : 0);
        return _hash;
    }

    @Override
    public boolean equals(Object _object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(_object instanceof ContactDTO)) {
            return false;
        }
        ContactDTO _other = (ContactDTO) _object;
        if ((this.getId() == null && _other.getId() != null) || (this.getId() != null && !this.getId().equals(_other.getId()))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "ContactDTO[id=" + getId() + "]";
    }
}
